package com.itheima.edu.info.manager.day17;

public enum a {
    a("星期一"){
        @Override
        public void show() {
            System.out.println(a);
        }
    },
    b("星期二"){
        @Override
        public void show() {
            System.out.println(b);
        }
    },
    c("星期三"){
        @Override
        public void show() {
            System.out.println(c);
        }
    },
    d("星期四"){
        @Override
        public void show() {
            System.out.println(d);
        }
    },
    e("星期五"){
        @Override
        public void show() {
            System.out.println(e);
        }
    },
    f("星期六"){
        @Override
        public void show() {
            System.out.println(f);
        }
    },
    g("星期天"){
        @Override
        public void show() {
            System.out.println(g);
        }
    };
    a(){}
    public String name;

    a(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "a{" +
                "name='" + name + '\'' +
                '}';
    }
    public abstract void show();


}
